﻿@model IEnumerable<KRM.Core.vCurrentProductAlia>

<table class="table table-bordered table-fix tbl-selected">
    <thead>
        <tr>
            <th>Id</th>
            <th>Code</th>
            <th>Product</th>
            <th>Option</th>
            <th>SubOptions</th>
            <th>TradeBarcode</th>
            <th>TradePrice</th>
            <th>Margin(£)</th>
            <th>Margin(%)</th>
        </tr>
    </thead>
    <tbody>
        @foreach (var item in Model)
        {
            <tr onclick="currentproductpriceselected('@item.ID', '@ViewBag.accNumber', '@item.ProductID')">
                <td>@item.ID</td>
                <td>@item.ProductCode</td>
                <td>@item.ProductName</td>
                <td>@item.ProductOptionText</td>
                <td>@item.SubOptionsListString</td>
                <td>@item.TradeBarcode</td>
                <td>@item.TradeOptionPrice.ToString("N2")</td>
                <td>@((item.MarginPounds ?? 0).ToString("N2"))</td>
                <td>@((item.MarginPercent ?? 0).ToString("N2"))</td>
            </tr>
        }
    </tbody>
</table>
